﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:vm="clr-namespace:EX_NFC.FrontEnd.Windows.ViewModel"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:System="clr-namespace:System;assembly=mscorlib"
             xmlns:Windows="clr-namespace:EX_NFC.FrontEnd.Windows"
             xmlns:Converters="clr-namespace:EX_NFC.FrontEnd.Windows.Converters"
             x:Class="EX_NFC.FrontEnd.Windows.App"
             StartupUri="MainWindow.xaml"
             mc:Ignorable="d">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Brushes.xaml" />
                <ResourceDictionary Source="Assets/CoreStyles.xaml" />
                <ResourceDictionary Source="Assets/Fonts.xaml" />
                <ResourceDictionary Source="Assets/SDKStyles.xaml" />
                <ResourceDictionary Source="Assets/Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <vm:ViewModelLocator x:Key="Locator"
                                 d:IsDataSource="True" />
            <Windows:Localizer x:Key="Localizer" />
            <!-- Converters -->
            <Converters:OppositeBoolConverter x:Key="OppositeBoolConverter" />
            <Converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <Converters:OppositeBoolToVisibilityConverter x:Key="OppositeBoolToVisibilityConverter" />
            <!-- Ressources -->
            <Thickness x:Key="BasicMargin">15</Thickness>
            <System:Double x:Key="MediumControlWidth">150</System:Double>
            <System:Double x:Key="MediumControlHeight">50</System:Double>
            <Style x:Key="ButtonBasicStyle" TargetType="{x:Type Button}">
            	<Style.BasedOn>
            		<Style TargetType="{x:Type Button}">
            			<Setter Property="SnapsToDevicePixels" Value="True"/>
            			<Setter Property="Background" Value="#FFF7F7F7"/>
            			<Setter Property="BorderBrush" Value="#FFCCCCCC"/>
            			<Setter Property="Foreground" Value="Black"/>
            			<Setter Property="FontFamily" Value="Segoe UI, Lucida Sans Unicode, Verdana"/>
            			<Setter Property="FontSize" Value="14"/>
            			<Setter Property="FontWeight" Value="Bold"/>
            			<Setter Property="Padding" Value="5,6"/>
            			<Setter Property="BorderThickness" Value="1"/>
            			<Setter Property="IsTabStop" Value="False"/>
            			<Setter Property="Focusable" Value="False"/>
            			<Setter Property="Template">
            				<Setter.Value>
            					<ControlTemplate TargetType="{x:Type Button}">
            						<Grid>
            							<VisualStateManager.VisualStateGroups>
            								<VisualStateGroup x:Name="CommonStates">
            									<VisualState x:Name="Normal"/>
            									<VisualState x:Name="MouseOver">
            										<Storyboard>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MouseOverBorder">
            												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
            											</DoubleAnimationUsingKeyFrames>
            										</Storyboard>
            									</VisualState>
            									<VisualState x:Name="Pressed">
            										<Storyboard>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PressedBorder">
            												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
            											</DoubleAnimationUsingKeyFrames>
            										</Storyboard>
            									</VisualState>
            									<VisualState x:Name="Disabled">
            										<Storyboard>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement">
            												<SplineDoubleKeyFrame KeyTime="0" Value="0.7"/>
            											</DoubleAnimationUsingKeyFrames>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="contentPresenter">
            												<EasingDoubleKeyFrame KeyTime="0" Value="0.3"/>
            											</DoubleAnimationUsingKeyFrames>
            										</Storyboard>
            									</VisualState>
            								</VisualStateGroup>
            								<VisualStateGroup x:Name="FocusStates">
            									<VisualState x:Name="Focused">
            										<Storyboard>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusRectangle">
            												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
            											</DoubleAnimationUsingKeyFrames>
            											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="FocusInnerRectangle">
            												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
            											</DoubleAnimationUsingKeyFrames>
            										</Storyboard>
            									</VisualState>
            									<VisualState x:Name="Unfocused"/>
            								</VisualStateGroup>
            							</VisualStateManager.VisualStateGroups>
            							<Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="3"/>
            							<Rectangle x:Name="DisabledVisualElement" Fill="#A5FFFFFF" IsHitTestVisible="False" Opacity="0" RadiusY="3" RadiusX="3"/>
            							<Border x:Name="MouseOverBorder" BorderThickness="{TemplateBinding BorderThickness}" Background="#FFE0E0E0" CornerRadius="3.5" Opacity="0"/>
            							<Border x:Name="PressedBorder" BorderThickness="{TemplateBinding BorderThickness}" Background="#FFD8D8D9" CornerRadius="3.5" Opacity="0"/>
            							<Rectangle x:Name="FocusRectangle" Margin="-1" Opacity="0" RadiusY="4" RadiusX="4" Stroke="#FFB2E0F4"/>
            							<Rectangle x:Name="FocusInnerRectangle" Opacity="0" RadiusY="3" RadiusX="3" Stroke="#FF119EDA" StrokeThickness="{TemplateBinding BorderThickness}"/>
            							<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" RenderOptions.ClearTypeHint="Enabled" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
            						</Grid>
            					</ControlTemplate>
            				</Setter.Value>
            			</Setter>
            		</Style>
            	</Style.BasedOn>
            </Style>
            <Thickness x:Key="MediumMargin">15,8</Thickness>
        </ResourceDictionary>
        <!--Global View Model Locator-->


    </Application.Resources>

</Application>
